<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePointCardOrderTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('point_card_order', function (Blueprint $table) {
            $table->increments('id')->comment('积分卡订单表');
            $table->integer('card_id')->comment('积分卡id');
            $table->integer('user_id')->unsigned()->comment('用户id');
            $table->string('trade_id', 20)->comment('交易号');
            $table->smallInteger('status')->unsigned()->comment('订单支付状态，0-未支付，1-已预付5%，2-已激活');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
